<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>个人中心</title>
    <meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0.maximum-scale=1.0,user-scalable=no" name="viewport">
    <link rel="stylesheet" href="css/reset.css">
	<link rel="stylesheet" href="css/bosscoach.css">
	<link rel="stylesheet" href="css/flexible.css">
	<link rel="stylesheet" href="css/vant.css">
    <script src="js/jquery-3.3.1.min.js"></script>
	<script src="js/fontsize.js"></script>
	<script src="js/vue/vue.js"></script>
	<script src="js/vue/qs.js"></script>
	<script src="js/vue/axios.js"></script>
	<script src="js/vue/MD5.js"></script>
	<script src="js/vue/vant.js"></script>
</head>
<body>
<div id="app">
	<template>
		<div class="container_box">
			<header>
				<div class="rf logo_info">
					<img src="images/logo.png" class="quit" @click="setUp">
				</div>
			</header>
			<div class="grCenter">
				<span class="grColor">{{from.Sname}}</span>
				<span class="grColor">({{from.Rname}})</span>
			</div>
			<div class="group_details group_details_state clearfix">
				<div class="grName">
					{{from.Bname}}
				</div>
				<div class="grTime">
					<span>到期时间</span>
					<span>{{from.Betime}}</span>
				</div>
			</div>
		</div>	
	</template>
</div>
</body>
<script>
	var app = new Vue({
		el: '#app',
		data: {
			from:{}
		},
		created() {
			this.marketing()
		},
		methods: {
			marketing(){
				axios.get('mobileapi/boss/venueset.php?act=info').then(data => {
					console.log(data.data)
					let { msg, code} = data.data
						if (code !== 200) {
							window.vant.Toast.fail(msg)
						} else {
							data = data.data.data
							this.from=data
						}
					}).catch(function (error) { 
						console.log(error); 
				});
			},
			setUp(){
				window.location.href='set.html'
			}
		}
	})
</script>
</html>